const arr1 = [16, 256, 102, 28, 201, 98, 923];
// console.log(arr1.sort()); // 102,16,201,256,28,923,98

const arr2 = arr1.sort((x, y) => {
    console.log(x + '-' + y + '=' + (x - y));
    return x - y
  })
  // 256 16 
console.log('-------------------');
console.log(arr2);